<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册 - 外卖管理系统</title>
    <link rel="stylesheet" href="../css/style.css">
</head>
<body>
    <nav class="navbar">
        <div class="container">
            <h1>外卖管理系统</h1>
            <ul>
                <li><a href="../index.html">首页</a></li>
                <li><a href="restaurants.html">餐厅列表</a></li>
                <li><a href="orders.html">我的订单</a></li>
                <li><a href="login.html">登录</a></li>
                <li><a href="register.html">注册</a></li>
            </ul>
        </div>
    </nav>

    <div class="container">
        <form class="auth-form" id="registerForm">
            <h2>用户注册</h2>
            <div class="form-group">
                <label for="username">用户名</label>
                <input type="text" id="username" name="username" required>
            </div>
            <div class="form-group">
                <label for="password">密码</label>
                <input type="password" id="password" name="password" required>
            </div>
            <div class="form-group">
                <label for="confirmPassword">确认密码</label>
                <input type="password" id="confirmPassword" name="confirmPassword" required>
            </div>
            <div class="form-group">
                <label for="phone">手机号码</label>
                <input type="tel" id="phone" name="phone" required>
            </div>
            <div class="form-group">
                <label for="address">配送地址</label>
                <input type="text" id="address" name="address" required>
            </div>
            <div class="form-group">
                <label for="role">用户角色</label>
                <select id="role" name="role" required>
                    <option value="customer">顾客</option>
                    <option value="merchant">商家</option>
                </select>
            </div>
            <button type="submit" class="btn">注册</button>
            <p>已有账号？<a href="login.html">立即登录</a></p>
        </form>
    </div>

    <script src="../js/auth.js"></script>
</body>
</html>
